#include "server.hpp"

int main()
{
    Buffer buf;
    for(int i=0; i<=300; i++){
        std::string str="hello!!" + std::to_string(i) + '\n';
        buf.WriteStringAndPush(str);
    }
    while(buf.ReadAbleSize()>0){
        std::string line=buf.GetLineAndPop();
        std::cout<< line <<std::endl;
    }
    return 0;
}